import React from "react";
import {View} from "react-native";
import {globalStore} from "../../libs/ShareStore";
import {pageStyle} from "../style/pageStyle";
import InputForm from "../../components/form/InputForm";
import EButton from "../../components/utils/EButton";


type AddFriendModalState = {
    imageUri:string
}


export default class AddFriendModal extends React.Component<any, AddFriendModalState> {

    constructor(props:any) {
        super(props);
        this.state = {
            imageUri: ''
        }
    }

    onChangeText(text:string){
        globalStore.friendAdd.auid = text;
    }

    onAddFriendPressOk(){
        globalStore.onAddFriendPressOk();
    }

    render() {
        return (
        <View style={pageStyle.container}>
            <InputForm startText={'好友auid:'} defaultValue={''} onChangeInput={(text)=>{this.onChangeText(text)}} />
            <EButton title={'添加好友'} onPress={()=>{this.onAddFriendPressOk()}}/>
        </View>

        )
     }
}
